package com.sinbader.xiaole.common.mapper;

import com.sinbader.xiaole.common.entity.ProductWarningInfo;
import com.sinbader.xiaole.common.model.params.ProductWarningInfoParam;
import com.sinbader.xiaole.common.model.result.ProductWarningInfoResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 商品预警信息表 Mapper 接口
 * </p>
 *
 * @author LuoYong
 * @since 2020-04-23
 */
public interface ProductWarningInfoMapper extends BaseMapper<ProductWarningInfo> {

    /**
     * 获取列表
     *
     * @author LuoYong
     * @Date 2020-04-23
     */
    List<ProductWarningInfoResult> customList(@Param("paramCondition") ProductWarningInfoParam paramCondition);

    /**
     * 获取map列表
     *
     * @author LuoYong
     * @Date 2020-04-23
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") ProductWarningInfoParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author LuoYong
     * @Date 2020-04-23
     */
    Page<ProductWarningInfoResult> customPageList(@Param("page") Page page, @Param("paramCondition") ProductWarningInfoParam paramCondition);

    /**
     * 获取分页map列表
     *
     * @author LuoYong
     * @Date 2020-04-23
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") ProductWarningInfoParam paramCondition);

    ProductWarningInfoResult getProductWarningInfoByMap(Map paramMap);

//    ProductWarningInfo getProductWarningInfoByOrgId(@Param("orgId") Long orgId);
}
